package JJX;

import java.util.Scanner;

public class OddAndEven {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        while (true) {
            System.out.println("请输入一个整数");
            int num = input.nextInt();
            if (num % 2 == 0 || num / 2 == 0) {
                System.out.println("这个数是偶数");
            } else if (num % 2 != 0) {
                System.out.println("这个数是奇数");
            }
            System.out.println("继续吗(y/n)");
            if (input.next().equals("n")){
                System.out.println("谢谢使用");
                break;
            }
        }
    }
}
